<?php
/**
 * Created by PhpStorm.
 * User: zing
 * Date: 2018/10/11
 * Time: 22:22
 */

function func()
{
    //Returns the number of arguments passed to the function
    echo func_num_args() . PHP_EOL;
}

func();
func(1);
func(1, 2);
func(1, 2, 3);